import {NgModule, ErrorHandler} from '@angular/core';
import {HTTP_INTERCEPTORS} from '@angular/common/http';

import {Storage} from './utils/storage';
import {Events} from './utils/events';
import {ErrorHandlerNew} from './utils/error-handler';
import {NoopInterceptor} from "./net/noop-interceptor";
import {EventEmitter} from "events";


@NgModule({
    providers: [
        Storage,
        Events,
        NoopInterceptor,
        ErrorHandlerNew,
        EventEmitter,
        {
            provide: ErrorHandler,
            useClass: ErrorHandlerNew
        },
        {
            provide: HTTP_INTERCEPTORS,
            useClass: NoopInterceptor,
            multi: true
        }
    ]
})


export class CoreModule {
}